import request from '@/utils/request'
import qs from 'qs';

export function getShopList() {
    return request({
        url: '/manager/shop/pageShops/1/10',
        method: 'get'
    })
}
export function uploadImg(file) {
    return request({
        url: '/manager/shop/pageShops/1/100',
        method: 'get',
        data: file
    })
}
export function addShop(shop) {
    return request({
        url: '/manager/shop/saveShop',
        method: 'post',
        data: qs.stringify(shop)
    })
}
export function deleteShop(id) {
    return request({
        url: `/manager/shop/deleteShopById/${id}`,
        method: 'delete'
    })
}
export function updateShop(shop) {
    return request({
        url: '/manager/shop/updateShop',
        method: 'post',
        data: qs.stringify(shop)
    })
}